import request from '@/utils/request'

// 企业号列表
export const getDouyinList = (data: any) => {
  return request({
    url: '/scrm-api/douyin/get-douyin-agent-list',
    method: 'POST',
    data
  })
}
// 获取企业号绑定信息
export const getDouyinInfo = (data: any) => {
  return request({
    url: '/scrm-api/douyin/get-douyin-bind-info',
    method: 'POST',
    data
  })
}
// 获取提醒设置
export const getRedConfig = (data: any) => {
  return request({
    url: '/scrm-api/douyin/get-remind-config',
    method: 'POST',
    data
  })
}
// 延长授权，取消授权，重新授权
export const getDouyinAuth = (data: any) => {
  return request({
    url: '/scrm-api/douyin/handle-douyin-auth',
    method: 'POST',
    data
  })
}
// 抖音授权成功回调
export const getDouyinCallback = (data: any) => {
  return request({
    url: '/scrm-api/douyin/douyin-auth-callback',
    method: 'get',
    params: data
  })
}
// 不在提醒
export const getNoRemind = (data: any) => {
  return request({
    url: '/scrm-api/douyin/no-remind',
    method: 'POST',
    data
  })
}

// 删除抖音授权号
export const getDelAuth = (data: any) => {
  return request({
    url: '/scrm-api/douyin/del-douyin-auth',
    method: 'POST',
    data
  })
}
